<?php
/**
 * Created by PhpStorm.
 * User: songs
 * Date: 2019/11/20
 * Time: 10:14
 */

namespace App\Services\Api;
use App\admin\Service\OA;
use App\Jobs\Fun;
use App\Models\Admin\CompanyModel;
use App\Models\Admin\JobModel;
use App\Models\Admin\JobStaffModel;
use App\Models\Admin\OrderBaleModel;
use App\Models\Admin\OrderCheckModel;
use App\Models\Admin\OrderTempModel;
use App\Models\Admin\StaffModel;
use App\Models\JobsCompanysModel;
use App\Models\JobsModel;
use App\Models\LogModel;
use App\Models\NewsModel;
use App\Models\OrderCommentModel;
use App\Models\UploadPicModel;
use App\Models\User\UserLevelModel;
use App\Models\User\UserModel;
use App\Models\UserStaffModel;
use App\Models\UserStaffOptionModel;
use App\Services\Jiguang\JMessageApi;
use App\Services\OrdersPayService;
use App\Utilities\Imgcompress;
use Illuminate\Http\Request;
use App\Models\MoneyBilModel;
use DB;
use App\Models\User\UserOrdersModel;
use App\Services\Msg\MsgService;
/// App\Services\Api\News@
class News extends ApiBase
{
    /**
     * 删除资讯文章
    */
    public function DeleteNews(Request $request){
        $id=$request->post('id');
        if(!$id){
            OA::Json(1,'参数错误');
        }
        if(NewsModel::where('id',$id)->update([
            'status'=>NewsModel::status_hide
            ])==1){
            OA::Json(0,'ok');
        }else{
            OA::Json(1,'参数错误');
        }
    }


}